package com.wangkang.eduservice.entity.subject;
import com.google.common.collect.Lists;
import lombok.Data;
import java.util.List;


@Data
//一级分类
public class OneSubject {

    private String id;

    private String title;

    /**
     * 一个一级分类里面有多个二级分类
     */
    List<TwoSubject> children = Lists.newArrayList();

    public List<TwoSubject> getChildren() {
        return children;
    }

    public void setChildren(List<TwoSubject> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
